@import com.mgfireworks.mgplatform.mgadmin.sys.model.Organization
@import com.mgfireworks.mgplatform.mgadmin.constants.*
@extends("/form_template")
@args Boolean isEdit
@args Organization organization
@{
	if(organization==null){
		organization=new Organization();
	}
}
<div class="x_title">
 <h2>@if(isEdit){修改}else{添加}机构</h2>
 <div class="clearfix"></div>
</div>
<div class="x_content">
   <f_input name="orgId" value="@organization.getOrgId()" text="机构编号" required="required" readonly="readonly"></f_input>
   <f_input name="orgName" value="@organization.getOrgName()" text="机构名称" required="required"></f_input>
   <f_select name="orgType" text="机构类型" value="@organization.getOrgType()" required="required">
       <option value="">请选择</option>
       @for(OrgType o : OrgType.values()){
       <option value="@o.value()">@o.getPhrase()</option>
       }
   </f_select>
   <f_select name="orgLevel" text="机构级别" value="@organization.getOrgLevel()" required="required">
       <option value="">请选择</option>
       <option value="1">1级</option>
       <option value="2">2级</option>
   </f_select>
   <f_radio name="orgStatus" text="状态" text1="审核通过" text2="未审核" value="@organization.getOrgStatus()" value1="1" value2="0"></f_radio>
   <f_input name="orgAddress" value="@organization.getOrgAddress()" text="机构地址" required="required"></f_input>
   <f_input name="orgOfficial" value="@organization.getOrgOfficial()" text="负责人" required="required"></f_input>
   <f_input type="tel" name="orgContact" value="@organization.getOrgContact()" text="联系方式" required="required"></f_input>
   <f_chooser name="areaName" value="@organization.getAreaName()" name2="areaId" value2="@organization.getAreaId()" text="所在区域" url="@url("/sys/area/select.html")" required="required"></s_chooser>
   <f_input name="description" value="@organization.getDescription()" text="说明"></f_input>
</div>
